﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MNCServer
{
    public enum BlitzGameType
    {
        Exhibition = 0,
        Season = 1,
        Playoff = 2,
        Scramble = 3,
        SuddenDeath = 4,
        SuperSuddentDeath = 5,
    }

    public class BlitzServer : Server
    {
        /**
         * mnc.exe server HostileLobby?game=HostileGame.HGameInfo_PreGameLobby?
         * GameType=TeamBlitz?ServerDescription="My Blitz Server"?
         * GamePassword=passwordwithnospaces?MapName=3?CoopChallenge=3
        **/
        public BlitzGameType Challenge { get; set; }
        public override string ToString()
        {
            return string.Format
                ("server HostileLobby?game=HostileGame.HGameInfo_PreGameLobby?" + 
                "GameType=TeamBlitz?ServerDescription=\"{0}\"?" +
                "MapName={1}?CoopChallenge={1}{2} -ServerInstance=0 -log=DedicatedServer.log -STEAM_DEDSERVER -seekfreeloadingserver -nohomedir",
                Name, (int)Challenge, (IsPassworded ? "?GamePassword=" + Password : ""));
        }
    }
}
